import axios from "@/utils/http";
//数据
const state = {
  //数据定义处
  dataTable:[]
};

const getters = {
  //修饰后的数据获取方法
  // getXXX(state:any){
  //   return state.XXX
  // }
};

const mutations = {
  //修改数据处 ，可在这写axios请求拿数据
  addThirdData(state:any,data:any){
    axios({
      url:"/setting/systemDisposition/addDisposition",
      method:"post",
      data:{
        "alipayId": data.alipayId,
  "alipayPrivate": data.alipayId,
  "privatePublic": data.privatePublic,
  "weChatAppsecret": data.weChatAppsecret,
  "weChatCertificate": data.weChatCertificate,
  "weChatEncodingaex": data.weChatEncodingaex,
  "weChatId": data.weChatId,
  "weChatPay": data.weChatPay,
  "weChatPublicpay": data.weChatPublicpay,
  "weChatToken": data.weChatToken
      }
      }).then((res:any)=>{
          console.log("第三方",res);
     }).catch(err=>{
      console.log(err);
     })
    
  },
};

const actions = {};

export default {
  state,
  mutations,
  actions,
  getters,
};
